package com.zhoutao.blog.seven.model.converter;

import com.zhoutao.blog.seven.dao.model.SettingDao;
import com.zhoutao.blog.seven.model.response.Setting;
import org.springframework.stereotype.Component;

@Component
public class SettingConverter extends AbstractConverter<SettingDao, Setting> {


    @Override
    public Setting converterFrom(SettingDao settingDao) {
        return new Setting()
                .setId(settingDao.getId())
                .setKeyName(settingDao.getKeyName())
                .setValue(settingDao.getValue());
    }

    @Override
    public SettingDao converterTO(Setting setting) {
        return null;
    }
}
